//
//  SINAPickDateView.h
//  sinashebao
//
//  Created by  androidlongs on 2017/12/22.
//  Copyright © 2017年  androidlongs. All rights reserved.
//

#import "SINABasePickView.h"

@class SINAPickDateView;
//选择器的选择代理方法
@protocol  PickerDateViewDelegate<NSObject,BasePickViewDelegate>
@optional
- (void)pickerDateView:( SINAPickDateView *)pickerDateView selectYear:(NSInteger)year selectMonth:(NSInteger)month selectDay:(NSInteger)day selectHours:(NSInteger)hour;
- (void)pickerDateView:( SINAPickDateView *)pickerDateView selectYear:(NSInteger)year selectMonth:(NSInteger)month selectDay:(NSInteger)day selectHours:(NSInteger)hour selectMins:(NSInteger)min selectSecond:(NSInteger)second;
@end

@interface SINAPickDateView : SINABasePickView
@property(nonatomic, weak)id <PickerDateViewDelegate>delegate ;
@property(nonatomic, assign)BOOL isAddYetSelect;//是否增加至今的选项
@property(nonatomic, assign)BOOL isShowDay;//是否显示日
@property(nonatomic, assign)BOOL isShowHour;//是否显示时
@property(nonatomic, assign)BOOL isShowMin;//是否显示分钟
@property(nonatomic, assign)BOOL isShowSecond;//是否显示秒
//设置默认显示的值
-(void)setDefaultTSelectYear:(NSInteger)defaultSelectYear defaultSelectMonth:(NSInteger)defaultSelectMonth defaultSelectDay:(NSInteger)defaultSelectDay defaultSelectHour:(NSInteger)defaultSelectHour;


/**
 WXZPickDateView *pickerDate = [[WXZPickDateView alloc]init];
 
 
 [pickerDate setIsAddYetSelect:YES];//是否显示至今选项
 [pickerDate setIsShowDay:YES];//是否显示日信息
 [pickerDate setDefaultTSelectYear:2007 defaultSelectMonth:4 defaultSelectDay:1];//设定默认显示的日期
 [pickerDate setValidTime:2010];
 
 [pickerDate setDelegate:self];
 
 [pickerDate show];
 */
@end
